package com.hecate.user.service.handler;

/**
 * @author 黄星星
 * @date 2021-01-07
 */
public abstract class Handler {

    protected Handler nextHandler;

    public Handler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }

    /**
     * 处理传递过来的时间
     * @param type
     */
    public abstract void handleMessage(int type);
}
